package com.itheima.app;

import com.itheima.bean.service.BookService;
import com.itheima.config.SpringConfig8;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * ClassName: App8
 * Description:
 * Date: 2023/03/22 PM 10:25:13
 * <p>
 * project: springboot
 * package: com.itheima.app
 * email: 1085844536@qq.com
 * version:
 *
 * @author WangGuojian
 */
public class App8 {
    public static void main(String[] args) {
        ApplicationContext ctx = new AnnotationConfigApplicationContext(SpringConfig8.class);
        BookService bookService = ctx.getBean("bookService", BookService.class);
        bookService.check();
    }
}
